package com.example.hibernate.m.session;

import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.criterion.Criterion;

public interface BasedaoExtension<T> extends BaseDao<T>{
	
	public T findByName(String name, Object value);

	public List<T> findByLike(String name, Object value);

	public T findUniqueByName(String name, Object value);

	public T findUniqueByExample(T t);
	
	public Page<T> pagedQuery(Criteria criteria, int pageNo, int pageSize);

	public Page<T> pagedQuery(int pageNo, int pageSize, Criterion... criterions);

	public Page<T> pagedQuery(int pageNo, int pageSize, String orderBy,
			boolean isAsc, Criterion... criterions);
}
